﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Main_EmailTreeNode : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e)
    {
        if (TreeView1.SelectedNode.Text.Equals("In-Box"))
        {
            this.RegisterStartupScript("changeUrl", "<script language='javascript'> changeFrameRight('EmailInbox.aspx')</script>");
        }
        else if (TreeView1.SelectedNode.Text.Equals("Sent-Mail"))
        {
            this.RegisterStartupScript("changeUrl", "<script language='javascript'> changeFrameRight('Email.aspx')</script>");
        }
        else if (TreeView1.SelectedNode.Text.Equals("Drafts"))
        {

        }

    }
}
